package com.asen.commons.core.base.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 树型基础类DO
 *
 * @author Gary
 * @version 1.0
 * @date 2018-11-13
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper=true)
public abstract class TreeBase<T extends TreeBase> extends BaseData {

    private static final long serialVersionUID = 8103470887623268185L;

    public TreeBase(Long id) {
        super(id);
    }

    @ApiModelProperty(value = "父节点id", position = 982)
    private Long parentId;

    @ApiModelProperty(value = "父节点ids（id之间以英文逗号分隔）", position = 983)
    private String parentIds;

    @ApiModelProperty(value = "是否叶子节点", position = 984)
    private Boolean isLeaf;

    @ApiModelProperty(value = "排序", position = 985)
    private Integer sort;
}
